package com.tengol.demo.design.pattern.structural.decorator.v2;

/**
 * BattercakeDecorator
 *
 * @author dongrui
 * @date 2019/03/06
 */
public class BattercakeDecorator implements IBattercake{
    private IBattercake iBattercake;

    protected BattercakeDecorator(IBattercake iBattercake) {
        this.iBattercake = iBattercake;
    }

    public String getDesc() {
        return iBattercake.getDesc();
    }

    public int cost() {
        return iBattercake.cost();
    }
}
